/*
 * Copyright (c) 2010 Google Inc.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package com.google.api.data.gdata.v2.model;

import com.google.api.client.util.Key;

/**
 * Represents a logically nested entry. For example, a {@link Who} representing
 * a contact might have a nested entry from a contact feed.
 * 
 * @since 2.2
 * @author Nicolas Garnier
 */
public class EntryLink {

  /**
   * Specifies the entry URI. If the nested entry is embedded and not linked,
   * this attribute may be omitted.
   */
  @Key("@href")
  public String href;

  /**
   * Specifies whether the contained entry is read-only. The default value is
   * "false".
   */
  @Key("@readOnly")
  public Boolean readOnly;

  /**
   * Specifies the link relation; allows the service to provide multiple types
   * of entry links for a single entity. Has the same semantics and allowed
   * values as the {@link Link#rel} attribute of the {@link Link} element.
   */
  @Key("@rel")
  public String rel;

  /**
   * Contents of the entry.
   */
  @Key("gd:entryLink")
  public Entry entry;
}
